projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1af586
)
Let timeouts work right under Windows so GSAK (and users) can more readily
author
robertl
<robertl>
Mon, 12 Jan 2004 06:43:14 +0000
(06:43 +0000)
committer
robertl
<robertl>
Mon, 12 Jan 2004 06:43:14 +0000
(06:43 +0000)
tell when their unit is turned off or unplugged.
jeeps/gpsserial.c
patch
|
blob
|
history
diff --git
a/jeeps/gpsserial.c
b/jeeps/gpsserial.c
index a2e24e75edfcef3c198dc5fa97e3d3f1f584fefa..5b6d02ebc408672ba135601da03044c38452e629 100644
(file)
--- a/
jeeps/gpsserial.c
+++ b/
jeeps/gpsserial.c
@@
-84,6
+84,8
@@
int32 GPS_Serial_On(const char *port, int32 *fd)
GetCommTimeouts (comport, &timeout);
timeout.ReadIntervalTimeout = 10;
+ timeout.ReadTotalTimeoutMultiplier = 10;
+ timeout.ReadTotalTimeoutConstant = 1000;
timeout.WriteTotalTimeoutMultiplier = 10;
timeout.WriteTotalTimeoutConstant = 1000;
if (!SetCommTimeouts (comport, &timeout)) {